package com.papers.system.domain.bo;

import com.papers.common.core.domain.BaseEntity;
import com.papers.common.core.validate.AddGroup;
import com.papers.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 院系业务对象 t_juan_department
 *
 * @author papers
 * @date 2022-10-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TJuanDepartmentBo extends BaseEntity {

    /**
     * 院系ID
     */
    @NotBlank(message = "院系ID不能为空", groups = { EditGroup.class })
    private String departId;

    /**
     * 院系编号
     */
//    @NotBlank(message = "院系编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String departCode;

    /**
     * 院系名称
     */
    @NotBlank(message = "院系名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String departName;

    /**
     * 院系描述
     */
    private String departDesp;

    /**
     * 创建人
     */
    //@NotBlank(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String createdBy;

    /**
     * 创建时间
     */
    //@NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createdTime;

    /**
     * 更新人
     */
    //@NotBlank(message = "更新人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updatedBy;

    /**
     * 更新时间
     */
    //@NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updatedTime;


}
